package io.renren.modules.order_pay.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.utils.CommonUtils;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 支付信息
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-09-19 18:21:20
 */
@Data
@TableName("v9_order_pay")
public class V9OrderPayEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 *
	 */
	@TableId
	private Integer payId;
	/**
	 *
	 */
	private String spbillno;
	/**
	 * 状态
	 */
	private Integer payStatus;
	/**
	 * 外部交易单号
	 */
	private String listid;
	/**
	 * 总金额
	 */
	private BigDecimal totalFee;
	/**
	 * 会员价
	 */
	private BigDecimal memberFee;
	/**
	 * 实际支付
	 */
	private BigDecimal payFee;
	/**
	 * 积分支付
	 */
	private BigDecimal integralFee;
	/**
	 * 余额支付
	 */
	private BigDecimal balanceFee;
	/**
	 * 订单状态
	 */
	private Integer orderStatus;
	/**
	 * 添加时间
	 */
	private Integer addTime;
	private transient String addTimeStr;

	public String getAddTimeStr() {
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(addTime));
	}

	public void setAddTimeStr(String addTimeStr) {
		this.addTimeStr = addTimeStr;
	}

	public String getPayTimeStr() {
		return CommonUtils.timeStampToTime(CommonUtils.timeStampPlus3(payTime));
	}

	public void setPayTimeStr(String payTimeStr) {
		this.payTimeStr = payTimeStr;
	}

	/**
	 * 支付时间
	 */
	private Integer payTime;
	private transient String payTimeStr;
	/**
	 * 会员码
	 */
	private Integer userId;
	/**
	 * 支付方式
	 */
	private String payment;
	/**
	 * 积分
	 */
	private Integer integral;
	/**
	 *
	 */
	private Integer operatorId;
	/**
	 *
	 */
	private BigDecimal chargeFee;
	/**
	 * 优惠券抵扣
	 */
	private Integer activityFee;
	/**
	 *
	 */
	private Integer activityId;
	/**
	 *
	 */
	private Integer isNew;
	/**
	 *
	 */
	private BigDecimal usd;


	private transient  String username;

}
